import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-warehouse/inventory-scrap/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getDetail = (current, size, params) => {
  return request({
    url: '/api/mes-warehouse/inventory-scrap-pack/page-packing',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getChildDetail = (id) => {
  return request({
    url: '/api/mes-warehouse/inventory-scrap-pack/list-child-packing',
    method: 'get',
    params: {
      id
    }
  });
};
